<?php
namespace app\common\model;
class Group extends Base{
    function device(){
    	return $this->belongsToMany('device','group_device','relation_id');
    }
    function social(){
    	return $this->belongsToMany('social','group_social','relation_id');
    }
}
